package PRSystem_VO;

import java.sql.Blob;

public class PRSystem_PerformanceVO {
	private int perno; // 공연번호(시퀀스) perno - number(3) PK
	private String title; // 공연제목 title - varchar2(50) nn
	private byte[] oimg; // 출력 시 사용할 이미지
	private String iimg; // 입력 시 사용할 경로
	private int price_r; // 가격 price - number(10) nn
	private int price_s; // 가격 price - number(10) nn
	private int price_a; // 가격 price - number(10) nn
	private String actor; // 출연진 actor - varchar2(50)
	private String summary; // 시놉시스 summary - varchar2(50)
	private int pno; // 
	
	// 생성자
	public PRSystem_PerformanceVO() {
	}

	public PRSystem_PerformanceVO(String title,  int price_r,
			int price_s, int price_a, String actor, String summary, int pno) {
		this.title = title;

		this.price_r = price_r;
		this.price_s = price_s;
		this.price_a = price_a;
		this.actor = actor;
		this.summary = summary;
		this.pno = pno;
	}

	// setter,getter

	public int getPerNo() {
		return perno;
	}

	public void setPerNo(int perNo) {
		this.perno = perNo;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}


	public int getPerno() {
		return perno;
	}

	public void setPerno(int perno) {
		this.perno = perno;
	}

	public byte[] getOimg() {
		return oimg;
	}

	public void setOimg(byte[] oimg) {
		this.oimg = oimg;
	}

	public String getIimg() {
		return iimg;
	}

	public void setIimg(String iimg) {
		this.iimg = iimg;
	}

	public int getPrice_r() {
		return price_r;
	}

	public void setPrice_r(int price_r) {
		this.price_r = price_r;
	}

	public int getPrice_s() {
		return price_s;
	}

	public void setPrice_s(int price_s) {
		this.price_s = price_s;
	}

	public int getPrice_a() {
		return price_a;
	}

	public void setPrice_a(int price_a) {
		this.price_a = price_a;
	}

	public String getActor() {
		return actor;
	}

	public void setActor(String actor) {
		this.actor = actor;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public int getPno() {
		return pno;
	}

	public void setPno(int pno) {
		this.pno = pno;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(perno).append("/").append(title).append("/").append(oimg)
				.append("/").append(price_r).append("/").append(price_s).append("/").append(price_a)
				.append("/").append(actor).append("/").append(summary).append("/").append(pno)
				.append("\n");
		return sb.toString();
	}

} // main

